package com.hap.service.impl;

import com.hap.dao.RoleDao;
import com.hap.dao.UserDao;
import com.hap.service.UserService;

public class UserServiceImpl implements UserService {
    private UserDao userDao;
    private RoleDao roleDao;
    @Override
    public void addUser() {
        roleDao.addRole();
        userDao.addUser();
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public void setRoleDao(RoleDao roleDao) {
        this.roleDao = roleDao;
    }
}
